Skip to content

feat: add option to allow all replace directives#13

Open
sul3n3t wants to merge 1 commit intoldez:mainfrom
sul3n3t:allow-any-replace
Open

feat: add option to allow all replace directives#13
sul3n3t wants to merge 1 commit intoldez:mainfrom
sul3n3t:allow-any-replace

Conversation

@sul3n3t
Copy link

@sul3n3t sul3n3t commented Feb 21, 2026

Motivation

Thanks for creating this linter! I've been getting use of most of the settings, but the replace-allow-list has been an obstacle.

In my organization, we don't want to maintain a list of allowed module replacements for all modules covered by our golangci-lint configuration. There isn't a way to disable the replace-allow-list setting since empty/default means allow none.

Changes

This PR adds an additional option replace-any. When set to true, replace-allow-list and replace-local are ignored.

@sul3n3t sul3n3t marked this pull request as ready for review February 21, 2026 20:18
@ldez ldez self-requested a review February 21, 2026 21:06
@ldez ldez changed the title Add option to allow replace directives without an allowlist feat: add option to allow all replace directives Feb 21, 2026
@ldez ldez added the proposal label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants